/**
 * Copyright 2016 Qiyi Inc. All rights reserved.
 * 
 * @file:   StatisticSty2.js
 * @path:   js-src/StatisticSty2/
 * @author: zhang@qiyi.com
 * @date:   2016-04-25
 */
qui(
	function(require, exports, module){

        window.StatisticSty2 = window.StatisticSty2 || { version : '1.0' };

        StatisticSty2.queryStringObj = function() {
            //取浏览器参数
            var url = window.location.href;

            var queryStringArr = location.search.match(new RegExp("[\?\&][^\?\&]+=[^\?\&]+","g")),
            	 queryStringObj = {}
            	 itemArr = [];

            for(var i = 0; i < queryStringArr.length; i++){
                itemArr = queryStringArr[i].substring(1).split("=");
                queryStringObj[itemArr[0]] = itemArr[1];
            }

            return queryStringObj;
        };
	}
);